#ifndef __Surface_H__
#define __Surface_H__

#include <d3d9.h>
#include <d3dx9.h>

//#include "Global.h"
#include "Trace.h"


class Surface
{
private:
	LPWSTR _fileName;
	LPDIRECT3DDEVICE9 _d3ddv;
	LPDIRECT3DSURFACE9 _Surface;

public:

	Surface(LPDIRECT3DDEVICE9 d3ddv, LPWSTR FileName);
	~Surface();

	void SetDevice(LPDIRECT3DDEVICE9 d3ddv) { _d3ddv = d3ddv;}
	LPDIRECT3DSURFACE9 GetSurface() {return _Surface;}
	LPWSTR GetFileName() {return _fileName;}

	void Load(LPWSTR FileName);
	void Draw(LPDIRECT3DSURFACE9 BackBuffer, const RECT* sRect, const RECT* dRect);

	 
};

#endif